<div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            <!--{tp:menu menu="add" /}-->
        </span>
    <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count ?? '0'}</strong> 条
        </span>
</div>
<table class="table table-border table-bordered table-hover table-bg mt-20">
    <thead>
    <tr class="text-c">
        <th width="">ID</th>
        <th width="">订单ID</th>
        <th width="">线路名称</th>
        <th width="">预订人</th>
        <th width="">预订人电话</th>
        <th width="">人数</th>
        <th width="">出发日期</th>
        <th width="">平台</th>
        <th width="">用车形式</th>
        <th width="">接机地点</th>
        <th width="">接机时间</th>
        <th width="">预订人备注</th>
        <th width="">备注</th>
        <th colspan="2" width="70">操作</th>
    </tr>
    </thead>
    <tbody>
    {volist name="list" id="vo"}
        <tr class="text-c">
            <td>{$vo.id}</td>
            <td>{$vo.order_id}</td>
            <td>{$vo.route_title}</td>
            <td>{$vo.booking_people_name}</td>
            <td>{$vo.booking_people_phone}</td>
            <td>{$vo.num}</td>
            <td>{:date('Y-m-d',$vo.start_time)}</td>
            <td class="f-14">
                <?php
                if($platform){
                     foreach($platform as $k=>$v){
                            if($v['platform_name'] == $vo['platform']){
                                $plate = $v['name'];
                            }
                        }
                    }else{
                        $plate = '';
                    }
                ?>
                <?php echo $plate;?>
            </td>
            <td>{$vo.car_form}</td>
            <td>{$vo.pick_up_location}</td>
            <td>{$vo.pick_up_time}</td>
            <td>{$vo.booking_people_remark}</td>
            <td>
                <ul>
                    {volist name="$vo.remark" id="li" key="key"}
                    <li>{$key}、{$li.content}</li>
                    {/volist}
                </ul>
                <a id="more_remark{$k}" href="javascript:;" onclick="layer_open('备注信息','/admin/order/remark/order_id/{$vo.order_id}')" style="text-decoration:none;"
                   class="label label-success radius" title="更多">更多</a>
            </td>
            <td class="f-14">
                <!--{tp:menu menu='sedit' /}-->
                <!--<a title="旅客信息" href="javascript:;" onclick="layer_open('旅客信息','/admin/dispatch_traveler_group/traveller_info/id/{$vo.id}.html')" style="text-decoration:none" class="label label-warning radius">旅客信息</a>-->
                <a title="旅客信息" href="javascript:;" data-val="{$vo.id}" style="text-decoration:none" class="traveller_info label label-warning radius" onclick="show_traveller_info('{$vo.id}')">旅客信息</a>
                <a title="分配司机" href="javascript:;" onclick="layer_open('分配司机','/admin/dispatch_traveler_group/send_driver/type/pickup/group_id/{$vo.id}')" style="text-decoration:none" class="label label-warning radius">分配司机</a>
                <!--{tp:menu menu='sdelete' /}-->
            </td>
        </tr>
        <tr id="{$vo.id}" style="display: none">
            <td colspan="14">
                <table id="tab_{$vo.id}" class="table table-border table-bordered table-hover">
                    <thead>
                    <tr class="text-c" style="background-color: #EFEFEF;">
                        <th></th>
                        <th>ID</th>
                        <th>姓名</th>
                        <th>电话</th>
                        <th>证件号码</th>
                        <th>居住地址</th>
                        <th>年龄</th>
                        <th>性别</th>
                        <th>包含住宿</th>
                        <th>住宿备注</th>
                        <th>备注</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="$vo.travelers_info_list" id="traveler"}
                    <tr class="text-c">
                        <td>-></td>
                        <td><input type="hidden" name="traveler[id][]" value="{$traveler.id}">{$traveler.id}</td>
                        <td>{$traveler.name}</td>
                        <td>{$traveler.phone}</td>
                        <td>{$traveler.id_card}</td>
                        <td>{$traveler.address}</td>
                        <td>{$traveler.age}</td>
                        <td>{$traveler.sex}</td>
                        <td>{$traveler.isaccommodation}</td>
                        <td>{$traveler.accommodation}</td>
                        <td>{$traveler.remark}</td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
            </td>
        </tr>
    {/volist}
    </tbody>
</table>

<div class="page-bootstrap">{$page ?? ''}</div>

<!--{if condition="$refresh eq 1"}-->
<script>
    $(function () {
        $(".checkbox_oid").click(function () {
            console.log('123')
            return
            var selected_box=$(".selected_box");//length
            if(selected_box.length>0){
                selected_box=selected_box.eq(0);
            }else{
                selected_box=null;
            }
            var oid=$(this).data('oid');
            var travelers=$(".oid_"+oid);
            var checked=$(this).is(":checked");//选中，返回true;没选中，返回false;
            // console.log('你选中的订单id是', oid);
            if(checked){
                if(selected_box){
                    $(travelers).each(function () {
                        var traveler_id=$(this).data('traveler_id');
                        var traveler_name=$(this).data('traveler_name');
                        $(selected_box).append('<span class="traveler traveler_id_'+traveler_id+' traveler_oid_'+oid+'" data-traveler_id="'+traveler_id+'" data-traveler_oid="'+oid+'">'+traveler_name+'</span>');
                    })

                }else{
                    $('.listBox').append('<div class="list selected_box"><div class="delete">×</div><p class="driver driver_0" data-user_id="0">选择司机</p></div>');
                    selected_box=$(".selected_box").eq(0);
                    $(travelers).each(function () {
                        var traveler_id=$(this).data('traveler_id');
                        var traveler_name=$(this).data('traveler_name');
                        $(selected_box).append('<span class="traveler traveler_id_'+traveler_id+' traveler_oid_'+oid+'" data-traveler_id="'+traveler_id+'" data-traveler_oid="'+oid+'">'+traveler_name+'</span>');
                    })
                }
            }else{
                $(".traveler_oid_"+oid).remove();
            }
        });
    });
</script>
<!--{/if}-->